using System;
using System.Runtime.InteropServices;
namespace BMC.ARSystem
{
	[ARStructTypeInfo(Name = "ARDiaryStruct", NumberOfMembers = 3u), ClassInterface, Guid("4612905d-f277-427d-9857-4fcebf816937"), ProgId("BMC.ARSystem.DiaryEntry")]
	public class DiaryEntry
	{
		[ARStructMemTypeInfo(Name = "user", Offset = 0u)]
		private string _user;
		[ARStructMemTypeInfo(Name = "timeVal", Offset = 1u)]
		private DateTime _timeVal;
		[ARStructMemTypeInfo(Name = "value", Offset = 2u)]
		private string _text;
		public string User
		{
			get
			{
				return this._user;
			}
			set
			{
				this._user = value;
			}
		}
		public DateTime Time
		{
			get
			{
				return this._timeVal;
			}
			set
			{
				this._timeVal = value;
			}
		}
		public string Text
		{
			get
			{
				return this._text;
			}
			set
			{
				this._text = value;
			}
		}
		public DiaryEntry()
		{
		}
		public DiaryEntry(string user, DateTime time, string text)
		{
			this.User = user;
			this.Time = time;
			this.Text = text;
		}
		public override string ToString()
		{
			return string.Format("{0} ({1}): {2}", this.Time.ToLocalTime(), this.User, this.Text);
		}
	}
}
